package com.xlh.view.manager;

import android.widget.BaseAdapter;
import android.widget.ListView;

import com.xlh.interf.IActivity;
import com.xlh.interf.IAdapter;

/**
 * Created by Administrator on 2018/7/5.
 */

public class OtherExitsViewManager {
    private IActivity atv;

    public ListView getView() {
        return view;
    }

    public void setView(ListView view) {
        this.view = view;
    }

    private ListView view;
    private IAdapter DataAdapter;
    public IAdapter getDataAdapter() {
        return dataAdapter;
    }

    public OtherExitsViewManager(IActivity atv,ListView view,IAdapter dataAdapter){
        this.atv = atv;
        this.view = view;
        this.setDataAdapter(dataAdapter);
    }
    public void setDataAdapter(IAdapter dataAdapter) {
        this.dataAdapter = dataAdapter;
        view.setAdapter((BaseAdapter)this.dataAdapter);
    }

    private IAdapter dataAdapter;
}
